#! /bin/bash
include_dir=../include
src_dir=../src
target=user_service.proto

rm -rf ${include_dir}/*.pb.h ${src_dir}/*.pb.cc
sleep 1

protoc ${target} --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` \
    && mv *.pb.h ${include_dir} \
    && mv *.pb.cc ${src_dir}
